/**
 * 
 */
package com.mywind.service.core;

import java.util.Date;
import java.util.List;

import com.mywind.entity.core.Function;
import com.mywind.entity.core.User;

/**
 * @author A01162
 * 
 */
public interface IUserServ {
	/**
	 * 通过账号密码查询用户
	 * 
	 * @param account
	 * @param password
	 * @return
	 */
	public List<User> findUserByAccPwd(String account, String password);

	/**
	 * 通过用户id查询所有的function(菜单)
	 * 
	 * @param userid
	 * @return
	 */
	public List<Function> findFuncsByUserId(int userid);

	public List<User> findAllUsers();

	public User findUserById(int id);

	public User findUserByAccount(String account);

	public void updateUser(User user);

	public void updateCompanyCodeById(User user);

	public void deleteUserById(Date lastModifyTime, String lastModifyUser,
			int id);

	public void deleteUsersByIds(Date lastModifyTime, String lastModifyUser,
			List<Integer> ids);

	public void insertUser(User user);
}
